package lancoo.com.net.retrofitrxjava.retrofit;

import lancoo.com.net.retrofitrxjava.okhttp.Okhttp;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.simplexml.SimpleXmlConverterFactory;

/**
 * Created by pengmi on 2017/6/14.
 */

public class XmlRetrofit {
    public static Retrofit.Builder getBuilder( ) {
        return new Retrofit.Builder()
                .client(Okhttp.okHttpClient)
                .addConverterFactory(SimpleXmlConverterFactory.create())
                .addCallAdapterFactory(RxJava2CallAdapterFactory.create());
    }
}
